import random  # 借工具
win_list=[["st","jd"],["jd","bu"],["bu","st"]]
computer = random.choice(["st", "jd", "bu"])
print("computer:", computer)
player = input("出拳[st/jd/bu]: ")
if player not in ["st", "jd", "bu"]:
    print("重新出拳")
elif player == computer:
    print("平局")
elif [player, computer] in win_list:
    print("player win~")
else:
    print("computer win~")
